package com.example.springboot.demo.controller;

import org.apache.tomcat.util.buf.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping("/test")
public class TestController {

    @Value(value = "${book.name}")
    private  String name;
    @Value(value = "${book.auther}")
    private  String anther;
    @RequestMapping(value = "/test1")
    public String  test1(){
        return name+"/"+anther;
    }



    public static void main (String [] args){

        int second []={3,4,5,7,8};
        ArrayList list =new ArrayList();
        for(int a :second){
            int min = Integer.valueOf("1"+a+"000000000");
            int max = Integer.valueOf("1"+a+"999999999");
            for(int i=min;i<=max;i++){
                System.out.println(i);
            }
        }
    }



}
